//
//  NGLocalMessageViewController.h
//  NetMobileLocation
//
//  Created by Mehmet Sinan Şahin on 2/9/12.
//  Copyright (c) 2012 netgis. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NGUtility.h"
#import "LoadingView.h"

/**
 * İstemcide oluşturulup sunucuya gönderilen mesaj için kullanılır
 */
@interface NGLocalMessageViewController : UIViewController <UITextViewDelegate> {
    IBOutlet UIBarButtonItem *toMessagesButtonItem;
    IBOutlet UIBarButtonItem *sendButtonItem;
    IBOutlet UINavigationItem *navItem;
    IBOutlet UITextView *messageBodyTextView;
    LOCAL_MESSAGE_TYPE messageType;
    LoadingView *loadingView;
    
    IBOutlet UIView *navItemTitleView;
    IBOutlet UILabel *lblNavItemTitle;
    IBOutlet UIImageView *imgNavItemTitle;
}

@property (nonatomic, retain) UIBarButtonItem *toMessagesButtonItem;
@property (nonatomic, retain) UIBarButtonItem *sendButtonItem;
@property (nonatomic, retain) UINavigationItem *navItem;
@property (nonatomic, retain) UITextView *messageBodyTextView;
@property (nonatomic, assign) LOCAL_MESSAGE_TYPE messageType;
@property (nonatomic, assign) LoadingView *loadingView;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil messageType: (LOCAL_MESSAGE_TYPE) pMessageType;

-(IBAction)toMessages:(id)sender;
-(IBAction)sendMessage:(id)sender;


@end
